//
// Created by ashCheng on 2022/10/20.
//

#include "Math.h"

double mypower(double base, int exp) {
  double result = base;
  int i;
  if (exp == 0) {
    return 1;
  }

  for (i = 1; i < exp; i++) {
    result = result * base;
  }
  return result;
}